// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import VueAxios from "vue-axios";
import axios from "axios";
import store from "./store";
// 全局css文件
import './assets/css/global.css'

// VueQuillEditor
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'

Vue.use(VueQuillEditor);
Vue.use(ElementUI);

Vue.prototype.$axios = axios
// axios.defaults.headers['authorization'] =  sessionStorage.getItem("token");
// Vue.config.productionTip = false
// axios.defaults.baseURL = 'http://localhost:8080'


/* eslint-disable no-new */
new Vue({
  el: '#app',
  router,
  render: h => h(App),
  components: { App },
  template: '<App/>',
  store,
  beforeCreate(){
    // this.prototype.$pubsub=pubsub
    // this.prototype.$dog=this
  }

})
